#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
namespace Cephei.QL.Instruments
{
     // <summary> 
	// ! This payoff is equivalent to being a) long a PlainVanillaPayoff at the first strike (same Call/Put type) and b) short a CashOrNothingPayoff at the first strike (same Call/Put type) with cash payoff equal to the difference between the second and the first strike. \warning this payoff can be negative depending on the strikes
	// </summary>
    [Guid ("01E7D4C9-88D2-4e8f-8E00-59FF8C3A90EE"),ComVisible(true)]
	public interface IGapPayoff : Cephei.QL.Instruments.IStrikedTypePayoff
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 String Description {get;}
        
		 String Name {get;}
        
		 Double SecondStrike {get;}
    }

    // <summary> 
	// ! This payoff is equivalent to being a) long a PlainVanillaPayoff at the first strike (same Call/Put type) and b) short a CashOrNothingPayoff at the first strike (same Call/Put type) with cash payoff equal to the difference between the second and the first strike. \warning this payoff can be negative depending on the strikes Factory
	// </summary>
   	[ComVisible(true)]
    public interface IGapPayoff_Factory // : Collection_Factory<IGapPayoff, ICell<IGapPayoff>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        
	    IGapPayoff Create (QL.Option.TypeEnum type, Double strike, Double secondStrike);
    }
}

